package com.controleur.listener.impl;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.modele.entity.Restaurant;
import com.vue.Fenetre;
import com.vue.RestaurantListeVue;

public class RestaurantSupprimerListener implements ActionListener{
	
	public Fenetre fenetre;
	public Restaurant resto;
	
	public RestaurantSupprimerListener(Fenetre fenetre){
		this.fenetre=fenetre;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
	   String s = e.getActionCommand();
    	    supprimerRestaurant();
	      	this.fenetre.setPanneau(new RestaurantListeVue(fenetre));
	}
	public Restaurant supprimerRestaurant(){

		return resto;
	}
		
	
}
